package com.link.base.base.servicerequest.controller;


import com.link.base.base.servicerequest.model.ServiceRequest;
import com.link.base.base.servicerequest.service.AcceptanceService;
import com.link.core.basic.controller.BasicController;
import com.link.core.basic.service.BasicService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * @author unknown
 * @date unknown
 */
@Controller
@RequestMapping("/link/acceptance")
public class AcceptanceController extends BasicController<ServiceRequest> {

    @Resource
    private AcceptanceService acceptanceService;


    @Override
    public void beforQueryAllOrExample(ServiceRequest record, HttpServletRequest request) {
        record.setModuleType("Acceptance");
    }

    @Override
    public BasicService<ServiceRequest> getBasicService() throws Exception {
        return acceptanceService;
    }
}
